package com.xc.domain.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.xc.domain.enums.AddressStatus;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author xc
 * @since 2024-05-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("address")
@Schema(description = "Address对象")
public class Address implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(title = "用户ID")
    @TableField("user_id")
    private Long userId;

    @Schema(title = "省")
    private String province;

    @Schema(title = "市")
    private String city;

    @Schema(title = "县/区")
    private String town;

    @Schema(title = "手机")
    private String mobile;

    @Schema(title = "详细地址")
    private String street;

    @Schema(title = "联系人")
    private String contact;

    @Schema(title = "是否是默认 1默认 0否")
    private AddressStatus isDefault;

    @Schema(title = "备注")
    private String notes;

    @Schema(title = "逻辑删除")
    private Boolean deleted;


}
